<template lang="pug">
div(class="lazyload-mark")
    lazy-component(@show="handler")
</template>
<script>
import Vue from "vue";
import VueLazyload from "vue-lazyload";

Vue.use(VueLazyload, { lazyComponent: true });

export default {
  props: {
    data: { type: Object, default: null }
  },
  methods: {
    handler() {
      this.$emit("show", this.data);
    }
  }
};
</script>


